﻿using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace CxExtension.Hashset
{
	public static class HashSetExtention
	{
		public static T Find<T>(this HashSet<T> self,Predicate<T> func)
		{
			T t = default(T);
			foreach(var item in self)
			{
				if(func(item))
				{
					t = item;
					break;
				}
			}
			return t;
		}
	}
}
